package org.eiahe.hr.salary.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.salary.domain.HousingFundPayment;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 公积金缴纳视图对象 hr_salary_housing_fund
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HousingFundPayment.class)
public class HousingFundPaymentVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 公积金缴纳ID
     */
    @ExcelProperty(value = "公积金缴纳ID")
    private Long paymentId;

    /**
     * 租户ID
     */
    @ExcelProperty(value = "租户ID")
    private String tenantId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    @ExcelProperty(value = "身份证号")
    private String idCard;

    /**
     * 员工姓名
     */
    @ExcelProperty(value = "员工姓名")
    private String employeeName;

    private Long department;

    private String departmentName;

    /**
     * 基础金额
     */
    @ExcelProperty(value = "基础金额")
    private BigDecimal baseAmount;

    /**
     * 年月(yyyyMM格式)
     */
    @ExcelProperty(value = "年月")
    private String yearMonth;

    /**
     * 个人缴纳额
     */
    @ExcelProperty(value = "个人缴纳额")
    private BigDecimal personalAmount;

    /**
     * 公司缴纳额
     */
    @ExcelProperty(value = "公司缴纳额")
    private BigDecimal companyAmount;

    /**
     * 缴纳基数
     */
    @ExcelProperty(value = "缴纳基数")
    private BigDecimal paymentBase;

    /**
     * 个人缴纳比例
     */
    @ExcelProperty(value = "个人缴纳比例")
    private BigDecimal personalRate;

    /**
     * 公司缴纳比例
     */
    @ExcelProperty(value = "公司缴纳比例")
    private BigDecimal companyRate;

    /**
     * 缴纳状态(0未缴纳 1已缴纳)
     */
    @ExcelProperty(value = "缴纳状态")
    private String paymentStatus;

    /**
     * 缴纳时间
     */
    @ExcelProperty(value = "缴纳时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paymentTime;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
